Klasse FilePdfSource
java.lang.Object
com.inet.pdfc.config.PdfSource
com.inet.pdfc.config.FilePdfSource
- Alle implementierten Schnittstellen:
Serializable, Comparable<PdfSource>
-
Feldübersicht
Von Klasse geerbte Felder PdfSource
KEY_LAST_MODIFIED, KEY_NAME, KEY_PASSWORD, KEY_PATH, KEY_SIZE -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungFilePdfSource(File document) Creates thePdfSourcefor a file system object.FilePdfSource(File pdfFile, String explicitName) Creates thePdfSourcefor a file system object.FilePdfSource(File pdfFile, String explicitName, boolean setNoMetaPath) Creates thePdfSourcefor a file system object. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungcom.inet.persistence.RandomAccessReadReturns the readable content of this document sourcelongReturns the time of the last modification to the document.getPath()Get the path of this document, if one exist.longgetSize()Returns the size of the raw data in bytesVon Klasse geerbte Methoden PdfSource
compareTo, equals, getLanguage, getMetaProperties, getName, getPassword, hashCode, setLanguage, setPageLimit, setPassword
-
Konstruktordetails
-
FilePdfSource
Creates thePdfSourcefor a file system object.- Parameter:
document- the actual document file- Löst aus:
IllegalArgumentException- in case pdfFile cannot be accessed or is a directory- Seit:
- 3.0
-
FilePdfSource
Creates thePdfSourcefor a file system object.- Parameter:
pdfFile- the actual PDF document fileexplicitName- the name to be set for thisPdfSource, this replaces the name derived from the file- Löst aus:
IllegalArgumentException- in case pdfFile cannot be accessed or is a directory- Seit:
- 3.0
-
FilePdfSource
Creates thePdfSourcefor a file system object.- Parameter:
pdfFile- the actual PDF document fileexplicitName- the name to be set for thisPdfSource, this replaces the name derived from the filesetNoMetaPath- true for removing path information, for other case false- Löst aus:
IllegalArgumentException- in case pdfFile cannot be accessed or is a directory- Seit:
- 3.0
-
-
Methodendetails
-
getLastModified
public long getLastModified()Returns the time of the last modification to the document. It's only used for report generation an has no impact on the comparison.- Setzt außer Kraft:
getLastModifiedin KlassePdfSource- Gibt zurück:
- the last modified timestamp of the document; interpreted as milliseconds since the beginning of 1970
-
getSize
-
getPath
-
getContent
Returns the readable content of this document source- Angegeben von:
getContentin KlassePdfSource- Gibt zurück:
- the readable content of this document source
- Löst aus:
IOException- thrown in case the source data cannot be accessed or does not exist
-